package cc.chengheng.java代码测试.循环依赖的例子2;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ServiceAA {

    private ServiceBB serviceBB;

    @Autowired
    public void setServiceB(ServiceBB serviceB) {
        this.serviceBB = serviceB;
        System.out.println("A 里面设置了 B");
    }
}
